package yy.com.yjboview;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import butterknife.ButterKnife;
import butterknife.OnClick;

/***
 * 今天进行view的学习
 * 2016年8月3日10:42:05
 *
 * @author yjbo
 * @qq 1457521527
 */
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.view_1, R.id.view_2, R.id.view_3, R.id.view_4})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.view_1:
                startActivity(new Intent(this,SimpleActivity.class));
                break;
            case R.id.view_2:
                startActivity(new Intent(this,CanvasActivity.class));
                break;
            case R.id.view_3:
                startActivity(new Intent(this,CanvasDemoActivity.class));
                break;
            case R.id.view_4:
                startActivity(new Intent(this,PathPicActivity.class));
                break;
        }
    }
}
